aes
{GGPLOT2}
Construct aesthetic mapping of a ggplot graph
setwd
{base}
Set Working Directory
library
{base}
Load an R package
theme_classic
{GGPLOT2}
A minimalistic theme with no gridlines
as.character
{base}
Coerce a vector to character
summary
{base}
Obtain summary statistics or detailed regression output
ggplot
{GGPLOT2}
Create a ggplot graph
lm
{base}
Fit a linear model
c
{base}
Combine values/vectors into a vector
scale_y_continuous
{GGPLOT2}
Customise continuous y axis
scale_x_continuous
{GGPLOT2}
Customise continuous x axis
ifelse
{base}
Return a or b depending on the value of test
read_dta
{haven}
Read a .dta file (Stata data)
geom_point
{GGPLOT2}
Generates a scatter plot
geom_smooth
{GGPLOT2}
Generates a smoothed conditional means curve / line
as.numeric
{base}
Coerce a vector to numeric
The end!